/*
 * ----------------------------------------------------------------
 * --- WARNING: THIS FILE IS GENERATED AND WILL BE OVERWRITTEN! ---
 * --- Generated at Feb 18, 2013 2:50:35 PM                     ---
 * ----------------------------------------------------------------
 *  
 * [y] hybris Platform
 *  
 * Copyright (c) 2000-2011 hybris AG
 * All rights reserved.
 *  
 * This software is the confidential and proprietary information of hybris
 * ("Confidential Information"). You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the
 * license agreement you entered into with hybris.
 *  
 */
package de.hybris.merchandise.core.jalo;

import de.hybris.merchandise.core.constants.MerchandiseCoreConstants;
import de.hybris.platform.jalo.JaloInvalidParameterException;
import de.hybris.platform.jalo.SessionContext;
import de.hybris.platform.jalo.c2l.C2LManager;
import de.hybris.platform.jalo.c2l.Language;
import de.hybris.platform.variants.jalo.VariantProduct;
import java.util.Map;

/**
 * Generated class for type {@link de.hybris.merchandise.core.jalo.ApparelStyleVariantProduct ApparelStyleVariantProduct}.
 */
@SuppressWarnings({"deprecation","unused","cast","PMD"})
public abstract class GeneratedApparelStyleVariantProduct extends VariantProduct
{
	/** Qualifier of the <code>ApparelStyleVariantProduct.swatchColour</code> attribute **/
	public static final String SWATCHCOLOUR = "swatchColour".intern();
	/** Qualifier of the <code>ApparelStyleVariantProduct.style</code> attribute **/
	public static final String STYLE = "style".intern();
	
	/**
	 * <i>Generated method</i> - Getter of the <code>ApparelStyleVariantProduct.style</code> attribute.
	 * @return the style - Colour/Pattern of the product.
	 */
	public String getStyle(final SessionContext ctx)
	{
		if( ctx == null || ctx.getLanguage() == null )
		{
			throw new JaloInvalidParameterException("GeneratedApparelStyleVariantProduct.getStyle requires a session language", 0 );
		}
		return (String)getLocalizedProperty( ctx, STYLE);
	}
	
	/**
	 * <i>Generated method</i> - Getter of the <code>ApparelStyleVariantProduct.style</code> attribute.
	 * @return the style - Colour/Pattern of the product.
	 */
	public String getStyle()
	{
		return getStyle( getSession().getSessionContext() );
	}
	
	/**
	 * <i>Generated method</i> - Getter of the <code>ApparelStyleVariantProduct.style</code> attribute. 
	 * @return the localized style - Colour/Pattern of the product.
	 */
	public Map<Language,String> getAllStyle(final SessionContext ctx)
	{
		return (Map<Language,String>)getAllLocalizedProperties(ctx,STYLE,C2LManager.getInstance().getAllLanguages());
	}
	
	/**
	 * <i>Generated method</i> - Getter of the <code>ApparelStyleVariantProduct.style</code> attribute. 
	 * @return the localized style - Colour/Pattern of the product.
	 */
	public Map<Language,String> getAllStyle()
	{
		return getAllStyle( getSession().getSessionContext() );
	}
	
	/**
	 * <i>Generated method</i> - Setter of the <code>ApparelStyleVariantProduct.style</code> attribute. 
	 * @param value the style - Colour/Pattern of the product.
	 */
	public void setStyle(final SessionContext ctx, final String value)
	{
		if( ctx == null || ctx.getLanguage() == null )
		{
			throw new JaloInvalidParameterException("GeneratedApparelStyleVariantProduct.setStyle requires a session language", 0 );
		}
		setLocalizedProperty(ctx, STYLE,value);
	}
	
	/**
	 * <i>Generated method</i> - Setter of the <code>ApparelStyleVariantProduct.style</code> attribute. 
	 * @param value the style - Colour/Pattern of the product.
	 */
	public void setStyle(final String value)
	{
		setStyle( getSession().getSessionContext(), value );
	}
	
	/**
	 * <i>Generated method</i> - Setter of the <code>ApparelStyleVariantProduct.style</code> attribute. 
	 * @param value the style - Colour/Pattern of the product.
	 */
	public void setAllStyle(final SessionContext ctx, final Map<Language,String> value)
	{
		setAllLocalizedProperties(ctx,STYLE,value);
	}
	
	/**
	 * <i>Generated method</i> - Setter of the <code>ApparelStyleVariantProduct.style</code> attribute. 
	 * @param value the style - Colour/Pattern of the product.
	 */
	public void setAllStyle(final Map<Language,String> value)
	{
		setAllStyle( getSession().getSessionContext(), value );
	}
	
	/**
	 * <i>Generated method</i> - Getter of the <code>ApparelStyleVariantProduct.swatchColour</code> attribute.
	 * @return the swatchColour - A normalised colour mapping to a standardised front-end navigable name.
	 */
	public String getSwatchColour(final SessionContext ctx)
	{
		return (String)getProperty( ctx, SWATCHCOLOUR);
	}
	
	/**
	 * <i>Generated method</i> - Getter of the <code>ApparelStyleVariantProduct.swatchColour</code> attribute.
	 * @return the swatchColour - A normalised colour mapping to a standardised front-end navigable name.
	 */
	public String getSwatchColour()
	{
		return getSwatchColour( getSession().getSessionContext() );
	}
	
	/**
	 * <i>Generated method</i> - Setter of the <code>ApparelStyleVariantProduct.swatchColour</code> attribute. 
	 * @param value the swatchColour - A normalised colour mapping to a standardised front-end navigable name.
	 */
	public void setSwatchColour(final SessionContext ctx, final String value)
	{
		setProperty(ctx, SWATCHCOLOUR,value);
	}
	
	/**
	 * <i>Generated method</i> - Setter of the <code>ApparelStyleVariantProduct.swatchColour</code> attribute. 
	 * @param value the swatchColour - A normalised colour mapping to a standardised front-end navigable name.
	 */
	public void setSwatchColour(final String value)
	{
		setSwatchColour( getSession().getSessionContext(), value );
	}
	
}
